package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 帖子收藏
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-12-17 15:24:12
 */
@Getter
@Setter
@TableName("t_post_collect")
@ApiModel(value = "PostCollect对象", description = "帖子收藏")
public class PostCollect implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private String id;

    @ApiModelProperty("被收藏的帖子id")
    @TableField("post_id")
    private String postId;

    @ApiModelProperty("收藏的用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("收藏的用户昵称")
    @TableField("user_nick_name")
    private String userNickName;

    @ApiModelProperty("收藏的用户头像")
    @TableField("user_avatar")
    private String userAvatar;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
